package com.keshan.mapper;

import com.keshan.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository(value="StepCountMapper")
public interface StepCountMapper {
    int countByExample(StepCountExample example);

    int deleteByExample(StepCountExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(StepCount record);

    int insertSelective(StepCount record);

    List<StepCount> selectByExample(StepCountExample example);

    List<StepCountHide> selectHideByExample(StepCountExample example);

    StepCount selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") StepCount record, @Param("example") StepCountExample example);

    int updateByExample(@Param("record") StepCount record, @Param("example") StepCountExample example);

    int updateByPrimaryKeySelective(StepCount record);

    int updateByPrimaryKey(StepCount record);

    List<StepCountEveryday> selectStepCountEveryday(@Param("beginTime") Date beginTime,
                                                    @Param("endTime")Date endTime,
                                                    @Param("username")String username);
}